package com.wei.groupingcomparator;

import org.apache.hadoop.io.WritableComparator;

public class OrderGroupingComparator extends WritableComparator{

	
	public OrderGroupingComparator() {
		super(OrderInfo.class, true);
	}

	@Override
	public int compare(Object a, Object b) {
		OrderInfo orderInfo=(OrderInfo) a;
		OrderInfo orderInfo2=(OrderInfo) b;
		return orderInfo.getId().compareTo(orderInfo2.getId());
	}

	
}
